package com.syni.mdd.yhd.common.all.enums.groupBuy;

import com.syni.mdd.sjb.common.component.utils.common.enums.ReturnEnums;
import com.syni.mdd.yhd.common.all.constants.ResultCode;

/**
 * @className BargainGroupBuy
 * @description TOO
 * @Author cfx
 * @DATE 2020/2/4 10:53
 * @VERSION 1.0
 **/
public enum BargainGroupBuyEnums implements ReturnEnums {
    COUPON_EXPIRE("存在过期券，请检查后重新输入", ResultCode.CODE_ERROR_100),
    BARGAIN_NO_EXIST("砍价不存在", ResultCode.CODE_ERROR_100),
    BARGAIN_NO_BELONG("不属于该用户发起的砍价",ResultCode.CODE_ERROR_100),
    BARGAIN_NO_BELON("你已发起过一次砍价了",ResultCode.CODE_ERROR_100),
    BARGAIN_ALREADY_OVER("砍价已结束",ResultCode.CODE_ERROR_100);
    private String desc;
    private String returnCode;

    BargainGroupBuyEnums(String desc, String returnCode) {
        this.desc = desc;
        this.returnCode = returnCode;
    }

    @Override
    public String getCode() {
        return this.returnCode;
    }

    @Override
    public String getMsg() {
        return this.desc;
    }
}
